FHIR © HL7.org  |  Server Home  |  FHIR Server FHIR Server 3.7.16  |  FHIR Version n/a  User: [n/a]

Resource PlanDefinition/FHIR Server from package smart.who.int.anc#current (125 ms)

Package smart.who.int.anc
Type PlanDefinition
Id Id
FHIR Version R4
Source http://smart.who.int/anc/https://build.fhir.org/ig/WorldHealthOrganization/smart-anc/PlanDefinition-ANCDT29.html
Url http://smart.who.int/anc/PlanDefinition/ANCDT29
Version 0.3.0
Status active
Date 2025-06-24T13:58:48-06:00
Name ANCDT29
Title ANC.DT.29 HIV risk counselling
Experimental False
Realm uv
Authority who
Description If the woman has risk factors for contracting HIV, provide counselling to reduce risk of contracting HIV

Resources that use this resource

No resources found


Resources that this resource uses

No resources found



Narrative

Note: links and images are rebased to the (stated) source

Id: ANCDT29
Url: ANC.DT.29 HIV risk counselling
Version: 0.3.0
Official

ANC.DT.29

Title: ANC.DT.29 HIV risk counselling
Type:

system: http://terminology.hl7.org/CodeSystem/plan-definition-type

code: eca-rule

Date: 2025-06-24 13:58:48-0600
Publisher: World Health Organization (WHO)
Description:

If the woman has risk factors for contracting HIV, provide counselling to reduce risk of contracting HIV

Use Context:
code value
task
Jurisdiction: 001
Libraries:
ANC.DT.29 HIV risk counselling
Actions:
ANC.DT.29 HIV risk counselling:
When: Named Event: ANC.B9. Conduct laboratory tests and imaging
Then:
If the woman lives in a setting with a generalized HIV epidemic, or her partner is HIV positive, or she injects drugs, or she is a sex worker, then she is at high risk for HIV – counselling should be given to provide prevention options Provide comprehensive HIV prevention options: – STI screening and treatment (syndromic and syphilis) – Condom promotion – Risk reduction counselling – Pre-exposure prophylaxis (PrEP) with emphasis on adherence – Emphasize importance of follow-up ANC contact visits
If: Applicability: (((((("HIV status" = "HIV negative") AND ("Prevalence of HIV in pregnant women in the catchment area" > 1%)) OR (("HIV status" = "HIV negative") AND ("Partner HIV status (reported)" = "HIV positive"))) OR (("HIV status" = "HIV negative") AND ("Partner HIV test result" = HIV positive"))) OR (("HIV status" = "HIV negative") AND (Partner HIV status (confirmed)" = "HIV positive"))) OR (("HIV status" = "HIV negative") AND (Current alcohol and/or other substance use" = "Injectable drugs"))) OR (("HIV status" = "HIV negative") AND ("Occupation" = "Employment that puts woman at increased risk for HIV (e.g. sex worker)")) (Should Conduct counselling on HIV risk)
Oral pre-exposure prophylaxis (PrEP) containing tenofovir disoproxil fumarate (TDF) should be offered as an additional prevention choice for pregnant women at substantial risk of HIV infection as part of combination prevention approaches. See "PrEP offering framework" – a suggested prioritization framework for offering PrEP to pregnant and breastfeeding women (below).
If: Applicability: "Population incidence of HIV in the absence of PrEP" > 3 per 100 person-years (Should Conduct counselling on pre-exposure prophylaxis (PrEP) for HIV prevention)
Encourage woman to find out the status of her partner(s) or to bring them during the next contact visit to get tested
If: Applicability: ("Partner HIV status (reported)" = "Inconclusive") OR ("Partner HIV test conducted" = FALSE) (Should Conduct counselling on HIV risk 2)
Then: Additional sub-actions not displayed

Source

{
  "resourceType" : "PlanDefinition",
  "id" : "ANCDT29",
  "text" : {
    "status" : "extensions",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n<div>\n <table class=\"grid dict\">\n \n <tr>\n <th scope=\"row\"><b>Id: </b></th>\n <td style=\"padding-left: 4px;\">ANCDT29</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Url: </b></th>\n <td style=\"padding-left: 4px;\"><a href=\"PlanDefinition-ANCDT29.html\">ANC.DT.29 HIV risk counselling</a></td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Version: </b></th>\n <td style=\"padding-left: 4px;\">0.3.0</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\">\n <b>\n \n Official\n \n </b>\n </th>\n <td style=\"padding-left: 4px;\">\n \n <p style=\"margin-bottom: 5px;\">\n <span>ANC.DT.29</span>\n </p>\n \n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Title: </b></th>\n <td style=\"padding-left: 4px;\">ANC.DT.29 HIV risk counselling</td>\n </tr>\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Type: </b></th>\n <td style=\"padding-left: 4px;\">\n \n \n \n <p style=\"margin-bottom: 5px;\">\n <b>system: </b> <span><a href=\"http://terminology.hl7.org/6.4.0/CodeSystem-plan-definition-type.html\">http://terminology.hl7.org/CodeSystem/plan-definition-type</a></span>\n </p>\n \n \n <p style=\"margin-bottom: 5px;\">\n <b>code: </b> <span>eca-rule</span>\n </p>\n \n \n \n \n \n </td>\n </tr>\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Date: </b></th>\n <td style=\"padding-left: 4px;\">2025-06-24 13:58:48-0600</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Publisher: </b></th>\n <td style=\"padding-left: 4px;\">World Health Organization (WHO)</td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Description: </b></th>\n <td style=\"padding-left: 4px;\"><div><p>If the woman has risk factors for contracting HIV, provide counselling to reduce risk of contracting HIV</p>\n</div></td>\n </tr>\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Use Context: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n <tr>\n <th><b>code</b></th>\n <th><b>value</b></th>\n </tr>\n \n <tr>\n <td>task</td>\n <td/>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Jurisdiction: </b></th>\n <td style=\"padding-left: 4px;\">001</td>\n </tr>\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n\n \n <tr>\n <th scope=\"row\"><b>Libraries: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td><a href=\"Library-ANCDT29.html\">ANC.DT.29 HIV risk counselling</a></td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n\n \n <tr>\n <th scope=\"row\"><b>Actions: </b></th>\n <td style=\"padding-left: 4px;\">\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n <b> ANC.DT.29 HIV risk counselling:</b> \n \n <br/>\n \n <b>When:</b>\n \n <i>Named Event:</i> ANC.B9. Conduct laboratory tests and imaging\n <br/>\n \n \n \n \n <b>Then:</b>\n <table class=\"grid-dict\">\n \n <tr>\n <td>\n \n If the woman lives in a setting with a generalized HIV epidemic, or her partner is HIV positive, or she injects drugs, or she is a sex worker, then she is at high risk for HIV – counselling should be given to provide prevention options\n\nProvide comprehensive HIV prevention options: \n– STI screening and treatment (syndromic and syphilis)\n– Condom promotion\n– Risk reduction counselling\n– Pre-exposure prophylaxis (PrEP) with emphasis on adherence\n– Emphasize importance of follow-up ANC contact visits\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n ((((((&quot;HIV status&quot; = &quot;HIV negative&quot;)\n AND (&quot;Prevalence of HIV in pregnant women in the catchment area&quot; &gt; 1%))\n OR ((&quot;HIV status&quot; = &quot;HIV negative&quot;)\n AND (&quot;Partner HIV status (reported)&quot; = &quot;HIV positive&quot;)))\n OR ((&quot;HIV status&quot; = &quot;HIV negative&quot;)\n AND (&quot;Partner HIV test result&quot; = HIV positive&quot;)))\n OR ((&quot;HIV status&quot; = &quot;HIV negative&quot;)\n AND (Partner HIV status (confirmed)&quot; = &quot;HIV positive&quot;)))\n OR ((&quot;HIV status&quot; = &quot;HIV negative&quot;)\n AND (Current alcohol and/or other substance use&quot; = &quot;Injectable drugs&quot;)))\n OR ((&quot;HIV status&quot; = &quot;HIV negative&quot;)\n AND (&quot;Occupation&quot; = &quot;Employment that puts woman at increased risk for HIV (e.g. sex worker)&quot;))\n \n <i>(Should Conduct counselling on HIV risk)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Oral pre-exposure prophylaxis (PrEP) containing tenofovir disoproxil fumarate (TDF) should be offered as an additional prevention choice for pregnant women at substantial risk of HIV infection as part of combination prevention approaches.\n\nSee &quot;PrEP offering framework&quot; – a suggested prioritization framework for offering PrEP to pregnant and breastfeeding women (below).\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n &quot;Population incidence of HIV in the absence of PrEP&quot; &gt; 3 per 100 person-years\n \n <i>(Should Conduct counselling on pre-exposure prophylaxis (PrEP) for HIV prevention)</i>\n <br/>\n \n \n \n \n \n </td>\n </tr>\n \n <tr>\n <td>\n \n Encourage woman to find out the status of her partner(s) or to bring them during the next contact visit to get tested\n \n <br/>\n \n \n <b>If:</b>\n \n <i>Applicability:</i>\n \n (&quot;Partner HIV status (reported)&quot; = &quot;Inconclusive&quot;)\n OR (&quot;Partner HIV test conducted&quot; = FALSE)\n \n <i>(Should Conduct counselling on HIV risk 2)</i>\n <br/>\n \n \n \n <b>Then:</b> <i>Additional sub-actions not displayed</i>\n \n </td>\n </tr>\n \n </table>\n \n </td>\n </tr>\n \n </table>\n </td>\n </tr>\n \n </table>\n</div>\n</div>"
  },
  "contained" : [
    {
      "resourceType" : "Library",
      "id" : "effective-data-requirements",
      "name" : "EffectiveDataRequirements",
      "status" : "active",
      "type" : {
        "coding" : [
          {
            "system" : "http://terminology.hl7.org/CodeSystem/library-type",
            "code" : "module-definition"
          }
        ]
      },
      "relatedArtifact" : [
        {
          "type" : "depends-on",
          "display" : "Library FHIRHelpers",
          "resource" : "http://smart.who.int/anc/Library/FHIRHelpers|4.0.1"
        },
        {
          "type" : "depends-on",
          "display" : "Library ContactData",
          "resource" : "http://smart.who.int/anc/Library/ANCContactDataElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library WC",
          "resource" : "http://smart.who.int/anc/Library/WHOCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Library Cx",
          "resource" : "http://smart.who.int/anc/Library/ANCConcepts"
        },
        {
          "type" : "depends-on",
          "display" : "Library Config",
          "resource" : "http://smart.who.int/anc/Library/ANCConfig"
        },
        {
          "type" : "depends-on",
          "display" : "Library BaseDataElements",
          "resource" : "http://smart.who.int/anc/Library/ANCBaseDataElements"
        },
        {
          "type" : "depends-on",
          "display" : "Library AC",
          "resource" : "http://smart.who.int/anc/Library/ANCCommon"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Partner HIV status (reported)",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de156"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Partner HIV status (reported) - Inconclusive Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de159"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Partner HIV test result",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b9-de48"
        },
        {
          "type" : "depends-on",
          "display" : "Value set HIV status",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b9-de45"
        },
        {
          "type" : "depends-on",
          "display" : "Value set HIV status - HIV negative Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b9-de47"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Partner HIV status (reported) - HIV Positive Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de157"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Partner HIV test result - Partner HIV positive Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b9-de52"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Partner HIV status (confirmed)",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b9-de55"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Partner HIV status (confirmed) - HIV positive Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b9-de56"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Current alcohol and/or other substance use",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de146"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Current alcohol and/or other substance use - Injectable drugs Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de150"
        },
        {
          "type" : "depends-on",
          "display" : "Value set Occupation - Employment that puts woman at increased risk for HIV (e.g. sex worker) Choices",
          "resource" : "http://smart.who.int/anc/ValueSet/anc-b6-de11"
        }
      ],
      "parameter" : [
        {
          "name" : "encounter",
          "use" : "in",
          "min" : 0,
          "max" : "1",
          "type" : "string"
        },
        {
          "name" : "Should Conduct counselling on HIV risk 2",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Conduct counselling on HIV risk",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        },
        {
          "name" : "Should Conduct counselling on pre-exposure prophylaxis (PrEP) for HIV prevention",
          "use" : "out",
          "min" : 0,
          "max" : "1",
          "type" : "boolean"
        }
      ],
      "dataRequirement" : [
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de156"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b9-de48"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b9-de45"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b9-de55"
            }
          ]
        },
        {
          "type" : "Observation",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Observation"
          ],
          "mustSupport" : [
            "code",
            "status",
            "encounter",
            "encounter.reference",
            "value"
          ],
          "codeFilter" : [
            {
              "path" : "code",
              "valueSet" : "http://smart.who.int/anc/ValueSet/anc-b6-de146"
            }
          ]
        },
        {
          "type" : "Patient",
          "profile" : [
            "http://hl7.org/fhir/StructureDefinition/Patient"
          ]
        }
      ]
    }
  ],
  "extension" : [
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Partner HIV status (reported)"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE156 Partner HIV status (reported)\n @activity: ANC.B6 Profile\n @description: The HIV status of the woman's partner\n*/\ndefine \"Partner HIV status (reported)\":\n WC.Only(\n [Observation: Cx.\"Partner HIV status (reported)\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 0
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Partner HIV test result"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B9.DE48 Partner HIV test result\n @activity: ANC.B9 Lab tests & imaging\n @description: Select the result of her partner's HIV test\n*/\ndefine \"Partner HIV test result\":\n WC.Only(\n [Observation: Cx.\"Partner HIV test result\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 1
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT29"
        },
        {
          "url" : "name",
          "valueString" : "Should Conduct counselling on HIV risk 2"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n(\"Partner HIV status (reported)\" = \"Inconclusive\")\n OR (\"Partner HIV test conducted\" = FALSE)\n*/\ndefine \"Should Conduct counselling on HIV risk 2\":\n ContactData.\"Partner HIV status (reported)\" in Cx.\"Partner HIV status (reported) - Inconclusive Choices\"\n or ContactData.\"Partner HIV test result\" is null"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 2
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "HIV status"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B9.DE45 HIV status\n @activity: ANC.B9 Lab tests & imaging\n @description: Calculated field for woman's HIV status\n*/\ndefine \"HIV status\":\n WC.Only(\n [Observation: Cx.\"HIV status\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 3
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCConfig"
        },
        {
          "url" : "name",
          "valueString" : "Prevalence of HIV in pregnant women in the catchment area"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n Description: The proportion of pregnant women in the health-care facility's\n catchment area who are HIV positive, based on the number of pregnant\n women attending antenatal clinics at the health-care facility\n*/\ndefine \"Prevalence of HIV in pregnant women in the catchment area\":\n 2 '%'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 4
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Partner HIV status (confirmed)"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B9.DE55 Partner HIV status (confirmed)\n @activity: ANC.B9 Lab tests & imaging\n @description: Partner's confirmed HIV status\n*/\ndefine \"Partner HIV status (confirmed)\":\n WC.Only(\n [Observation: Cx.\"Partner HIV status (confirmed)\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n ).value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 5
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCContactDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Current alcohol and/or other substance use"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n @dataElement: ANC.B6.DE146 Current alcohol and/or other substance use\n @activity: ANC.B6 Profile\n @description: Whether or not the woman currently consumes any alcohol or substances\n*/\ndefine \"Current alcohol and/or other substance use\":\n [Observation: Cx.\"Current alcohol and/or other substance use\"] O\n where O.status in { 'final', 'amended', 'corrected' }\n and Coalesce(WC.ModifierExtension(O, 'who-notDone').value, false) is false\n and Last(Split(O.encounter.reference, '/')) = Last(Split(encounter, '/'))\n return O.value as FHIR.CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 6
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCBaseDataElements"
        },
        {
          "url" : "name",
          "valueString" : "Patient Occupation"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n@description: The patient's occupation\n*/\ndefine \"Patient Occupation\":\n [Patient] P\n return (AC.Extension(P, 'occupation')).value as CodeableConcept"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 7
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT29"
        },
        {
          "url" : "name",
          "valueString" : "Should Conduct counselling on HIV risk"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n((((((\"HIV status\" = \"HIV negative\")\n AND (\"Prevalence of HIV in pregnant women in the catchment area\" > 1%))\n OR ((\"HIV status\" = \"HIV negative\")\n AND (\"Partner HIV status (reported)\" = \"HIV positive\")))\n OR ((\"HIV status\" = \"HIV negative\")\n AND (\"Partner HIV test result\" = HIV positive\")))\n OR ((\"HIV status\" = \"HIV negative\")\n AND (Partner HIV status (confirmed)\" = \"HIV positive\")))\n OR ((\"HIV status\" = \"HIV negative\")\n AND (Current alcohol and/or other substance use\" = \"Injectable drugs\")))\n OR ((\"HIV status\" = \"HIV negative\")\n AND (\"Occupation\" = \"Employment that puts woman at increased risk for HIV (e.g. sex worker)\"))\n*/\ndefine \"Should Conduct counselling on HIV risk\":\n ContactData.\"HIV status\" in Cx.\"HIV status - HIV negative Choices\"\n and (\n Config.\"Prevalence of HIV in pregnant women in the catchment area\" > 1 '%'\n or ContactData.\"Partner HIV status (reported)\" in Cx.\"Partner HIV status (reported) - HIV Positive Choices\"\n or ContactData.\"Partner HIV test result\" in Cx.\"Partner HIV test result - Partner HIV positive Choices\"\n or ContactData.\"Partner HIV status (confirmed)\" in Cx.\"Partner HIV status (confirmed) - HIV positive Choices\"\n or ContactData.\"Current alcohol and/or other substance use\" in Cx.\"Current alcohol and/or other substance use - Injectable drugs Choices\"\n or BaseDataElements.\"Patient Occupation\" in Cx.\"Occupation - Employment that puts woman at increased risk for HIV (e.g. sex worker) Choices\"\n )"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 8
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCConfig"
        },
        {
          "url" : "name",
          "valueString" : "Population incidence of HIV in the absence of PrEP"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n Description: HIV incidence number of cases per 100 person-years\n*/\ndefine \"Population incidence of HIV in the absence of PrEP\":\n System.Quantity { value: 4, unit: '{Person-years}' }"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 9
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCDT29"
        },
        {
          "url" : "name",
          "valueString" : "Should Conduct counselling on pre-exposure prophylaxis (PrEP) for HIV prevention"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n\"Population incidence of HIV in the absence of PrEP\" > 3 per 100 person-years\n*/\ndefine \"Should Conduct counselling on pre-exposure prophylaxis (PrEP) for HIV prevention\":\n Config.\"Population incidence of HIV in the absence of PrEP\" > 3 '{Person-Years}'"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 10
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToConcept"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToConcept(concept FHIR.CodeableConcept):\n if concept is null then\n null\n else\n System.Concept {\n codes: concept.coding C return ToCode(C),\n display: concept.text.value\n }"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 11
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToCode"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToCode(coding FHIR.Coding):\n if coding is null then\n null\n else\n System.Code {\n code: coding.code.value,\n system: coding.system.value,\n version: coding.version.value,\n display: coding.display.value\n }"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 12
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "Only"
        },
        {
          "url" : "statement",
          "valueString" : "define function Only(observations List<Observation>):\n singleton from observations"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 13
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToString"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToString(value ObservationStatus): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 14
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToBoolean"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToBoolean(value boolean): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 15
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "ModifierExtension"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n@description: Returns the single WHO core modifier extension (if present) on the given resource with the specified id.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified url.\n*/\ndefine function ModifierExtension(domainResource DomainResource, id String):\n singleton from ModifierExtensions(domainResource, id)"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 16
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "WHOCommon"
        },
        {
          "url" : "name",
          "valueString" : "ModifierExtensions"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n@description: Returns any WHO core modifier extensions defined on the given resource with the specified id.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\ndefine function ModifierExtensions(domainResource DomainResource, id String):\n domainResource.modifierExtension E\n\t where E.url = ('http://fhir.org/guides/who/core/StructureDefinition/' + id)\n\t\treturn E"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 17
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToString"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToString(value uri): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 18
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "FHIRHelpers"
        },
        {
          "url" : "name",
          "valueString" : "ToString"
        },
        {
          "url" : "statement",
          "valueString" : "define function ToString(value string): value.value"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 19
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCCommon"
        },
        {
          "url" : "name",
          "valueString" : "Extension"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n@description: Returns the single ANC extension (if present) on the given resource with the specified id.\n@comment: This function uses singleton from to ensure that a run-time exception is thrown if there\nis more than one extension on the given resource with the specified id.\n*/\ndefine function Extension(domainResource DomainResource, id String):\n singleton from \"Extensions\"(domainResource, id)"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 20
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "extension" : [
        {
          "url" : "libraryName",
          "valueString" : "ANCCommon"
        },
        {
          "url" : "name",
          "valueString" : "Extensions"
        },
        {
          "url" : "statement",
          "valueString" : "/*\n@description: Returns any ANC extensions defined on the given resource with the specified id.\n@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access\ncontent that is defined by extensions but not yet surfaced in the\nCQL model info.\n*/\ndefine function Extensions(domainResource DomainResource, id String):\n domainResource.extension E\n\t where E.url = ('http://smart.who.int/anc/StructureDefinition/' + id)\n\t\treturn E"
        },
        {
          "url" : "displaySequence",
          "valueInteger" : 21
        }
      ],
      "url" : "http://hl7.org/fhir/StructureDefinition/cqf-logicDefinition"
    },
    {
      "id" : "effective-data-requirements",
      "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-effectiveDataRequirements",
      "valueCanonical" : "#effective-data-requirements"
    },
    {
      "url" : "http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-softwaresystem",
      "valueReference" : {
        "reference" : "Device/cqf-tooling"
      }
    }
  ],
  "url" : "http://smart.who.int/anc/PlanDefinition/ANCDT29",
  "identifier" : [
    {
      "use" : "official",
      "value" : "ANC.DT.29"
    }
  ],
  "version" : "0.3.0",
  "name" : "ANCDT29",
  "title" : "ANC.DT.29 HIV risk counselling",
  "type" : {
    "coding" : [
      {
        "system" : "http://terminology.hl7.org/CodeSystem/plan-definition-type",
        "code" : "eca-rule"
      }
    ]
  },
  "status" : "active",
  "experimental" : false,
  "date" : "2025-06-24T13:58:48-06:00",
  "publisher" : "World Health Organization (WHO)",
  "contact" : [
    {
      "telecom" : [
        {
          "system" : "url",
          "value" : "https://www.who.int"
        }
      ]
    }
  ],
  "description" : "If the woman has risk factors for contracting HIV, provide counselling to reduce risk of contracting HIV",
  "useContext" : [
    {
      "code" : {
        "system" : "http://terminology.hl7.org/CodeSystem/usage-context-type",
        "code" : "task",
        "display" : "Workflow Task"
      },
      "valueCodeableConcept" : {
        "coding" : [
          {
            "system" : "http://smart.who.int/anc/CodeSystem/activity-codes",
            "code" : "ANC.B9.",
            "display" : "Conduct laboratory tests and imaging"
          }
        ]
      }
    }
  ],
  "jurisdiction" : [
    {
      "coding" : [
        {
          "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code" : "001"
        }
      ]
    }
  ],
  "library" : [
    "http://smart.who.int/anc/Library/ANCDT29"
  ],
  "action" : [
    {
      "title" : "ANC.DT.29 HIV risk counselling",
      "trigger" : [
        {
          "type" : "named-event",
          "name" : "ANC.B9. Conduct laboratory tests and imaging"
        }
      ],
      "action" : [
        {
          "id" : "1",
          "title" : "Conduct counselling on HIV risk",
          "description" : "Conduct counselling on HIV risk",
          "textEquivalent" : "If the woman lives in a setting with a generalized HIV epidemic, or her partner is HIV positive, or she injects drugs, or she is a sex worker, then she is at high risk for HIV – counselling should be given to provide prevention options\n\nProvide comprehensive HIV prevention options: \n– STI screening and treatment (syndromic and syphilis)\n– Condom promotion\n– Risk reduction counselling\n– Pre-exposure prophylaxis (PrEP) with emphasis on adherence\n– Emphasize importance of follow-up ANC contact visits",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "WHO ANC recommendations (2016): B.1.7, C.7 (2)\nPregnancy, childbirth, postpartum and newborn care guide (IMPAC) (2015): C6 (1)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "((((((\"HIV status\" = \"HIV negative\")\n AND (\"Prevalence of HIV in pregnant women in the catchment area\" > 1%))\n OR ((\"HIV status\" = \"HIV negative\")\n AND (\"Partner HIV status (reported)\" = \"HIV positive\")))\n OR ((\"HIV status\" = \"HIV negative\")\n AND (\"Partner HIV test result\" = HIV positive\")))\n OR ((\"HIV status\" = \"HIV negative\")\n AND (Partner HIV status (confirmed)\" = \"HIV positive\")))\n OR ((\"HIV status\" = \"HIV negative\")\n AND (Current alcohol and/or other substance use\" = \"Injectable drugs\")))\n OR ((\"HIV status\" = \"HIV negative\")\n AND (\"Occupation\" = \"Employment that puts woman at increased risk for HIV (e.g. sex worker)\"))",
                "language" : "text/cql-identifier",
                "expression" : "Should Conduct counselling on HIV risk"
              }
            }
          ]
        },
        {
          "id" : "2",
          "title" : "Conduct counselling on pre-exposure prophylaxis (PrEP) for HIV prevention",
          "description" : "Conduct counselling on pre-exposure prophylaxis (PrEP) for HIV prevention",
          "textEquivalent" : "Oral pre-exposure prophylaxis (PrEP) containing tenofovir disoproxil fumarate (TDF) should be offered as an additional prevention choice for pregnant women at substantial risk of HIV infection as part of combination prevention approaches.\n\nSee \"PrEP offering framework\" – a suggested prioritization framework for offering PrEP to pregnant and breastfeeding women (below).",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "WHO ANC recommendations (2016): C.7 (2)\nPre-exposure prophylaxis (PrEP) for HIV prevention (2017) (20)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "\"Population incidence of HIV in the absence of PrEP\" > 3 per 100 person-years",
                "language" : "text/cql-identifier",
                "expression" : "Should Conduct counselling on pre-exposure prophylaxis (PrEP) for HIV prevention"
              }
            }
          ]
        },
        {
          "id" : "3",
          "title" : "Conduct counselling on HIV risk",
          "description" : "Conduct counselling on HIV risk 2",
          "textEquivalent" : "Encourage woman to find out the status of her partner(s) or to bring them during the next contact visit to get tested",
          "documentation" : [
            {
              "type" : "citation",
              "label" : "WHO ANC recommendations (2016): B.1.7 (2)\nConsolidated guidelines on HIV testing services (2015) (6)"
            }
          ],
          "condition" : [
            {
              "kind" : "applicability",
              "expression" : {
                "description" : "(\"Partner HIV status (reported)\" = \"Inconclusive\")\n OR (\"Partner HIV test conducted\" = FALSE)",
                "language" : "text/cql-identifier",
                "expression" : "Should Conduct counselling on HIV risk 2"
              }
            }
          ],
          "action" : [
            {
              "title" : "Conduct counselling on HIV risk"
            },
            {
              "title" : "Recommended partner HIV test"
            }
          ]
        }
      ]
    }
  ]
}

XIG built as of ??metadata-date??. Found ??metadata-resources?? resources in ??metadata-packages?? packages.